package com.hzj.dao;

import java.util.List;

import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;

import com.hzj.pojo.EmployeeBean;

@Repository
public interface EmployeeRepository extends ElasticsearchRepository<EmployeeBean/*实体类*/, Long/*主键类型*/> {
    //可用自定义查询方法，只要方法名规范就行（idea也有提示的）
    List<EmployeeBean> findByNameLike(String name);
}